/* 搜索和筛选区域样式 */
.search-filters {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.search-filters select,
.search-filters input[type="text"],
.search-filters button {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.search-filters button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.search-filters button:hover {
    background-color: #0069d9;
}

/* 申请列表表格样式 */
.applications-table,
.companies-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.applications-table th,
.applications-table td,
.companies-table th,
.companies-table td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: left;
}

.applications-table th,
.companies-table th {
    background-color: #f8f9fa;
}

.applications-table tr:nth-child(even),
.companies-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.companies-table tr {
    cursor: pointer;
}

.companies-table tr:hover {
    background-color: #e9ecef;
}

/* 状态标签样式 */
.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-disabled {
    background-color: #f8d7da;
    border-color: #e74c3c;
    color: #721c24;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

/* 操作按钮样式 */
.action-buttons button {
    padding: 4px 8px;
    margin-right: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    min-width: 50px;
}

.approve-btn {
    background-color: #28a745;
    color: white;
    font-weight: bold;
}

.approve-btn:hover {
    background-color: #218838;
}

.reject-btn {
    background-color: #dc3545;
    color: white;
    font-weight: bold;
}

.reject-btn:hover {
    background-color: #c82333;
}

.view-btn {
    background-color: #17a2b8;
    color: white;
}

.view-btn:hover {
    background-color: #138496;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 50%;
    max-width: 500px;
}

.modal-content-wide {
    width: 80%;
    max-width: 900px;
}

.modal-close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
}

.modal-body {
    margin-bottom: 15px;
}

.modal-footer {
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.modal-footer button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.modal-footer .cancel {
    background-color: #6c757d;
    color: white;
}

.modal-footer .danger {
    background-color: #dc3545;
    color: white;
}

.modal-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.modal-form textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
}

.modal-form button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.modal-form .cancel {
    background-color: #6c757d;
    color: white;
}

.modal-form .submit {
    background-color: #28a745;
    color: white;
}

/* 申请详情样式 */
.application-details dt,
.detail-list dt {
    font-weight: bold;
    margin-top: 10px;
}

.application-details dd,
.detail-list dd {
    margin-left: 0;
    margin-bottom: 10px;
}

/* 公司详情容器样式 */
.company-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.company-basic-info {
    grid-column: 1;
}

.company-manager-info {
    grid-column: 2;
}

.company-employee-info {
    grid-column: 1 / span 2;
    margin-top: 20px;
}

.employee-summary {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
}

.department-stats {
    margin-top: 10px;
}

.department-stat {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 15px;
    font-size: 0.9em;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #dee2e6;
    background-color: white;
    cursor: pointer;
}

.pagination button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 空结果提示样式 */
.empty-result {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 20px;
}

/* 错误消息样式 */
.error-message {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}

/* Toast通知样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    z-index: 1050;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.toast-body {
    padding: 0.75rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast.info {
    border-left: 4px solid #17a2b8;
}

.toast.warning {
    border-left: 4px solid #ffc107;
} 

/* 修改密码表单样式 */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.password-requirements {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

.password-requirements p {
    margin-bottom: 5px;
}

.password-requirements ul {
    padding-left: 20px;
    margin: 0;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #45a049;
} 

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background-color: #c82333;
}

.delete-company-btn {
    margin-right: 10px;
} 

/* 模态框内的提示信息样式 */
.note-message {
    margin-top: 15px;
    padding: 10px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    border-radius: 4px;
}

.note-message p {
    margin: 0;
}

.note-message strong {
    font-weight: bold;
} 